Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] restructure hardware config #655

Closed

Conversation

fmessmer
Copy link
Member

@fmessmer fmessmer commented Apr 14, 2017

related to #437
includes #654 but will be rebased properly once that is merged...

trying to find a concept for this...this is rather a testing PR atm!

@fmessmer
Copy link
Member Author

fmessmer commented Apr 14, 2017

in 2f0866b I introduced launch files for each of our base modules (naming according to Verbautliste)...

As a first example, I then extracted the configuration for the laser scanners (sick_s300, sick_lms1xx) from the robot-specific configuration (i.e. cob_hardware_config/robots) and split it into component-specific yaml (i.e. driver settings) and module-specific settings (e.g. host/port, scan_interval).

I think, this is pretty much what we discussed...
Step by step we could now move more and more module-/components-specific configurations from the robot-specific cob_hardware_config/robots and create according module launch files and component yamls...

@ipa-nhg @ipa-fmw @ipa-mig @ipa-mdl FYI

@fmessmer fmessmer force-pushed the restructure_hardware_config branch 2 times, most recently from dd47599 to 2f0866b Compare April 14, 2017 17:42
@fmessmer
Copy link
Member Author

fmessmer commented Apr 17, 2017

I moved on a bit further...restructuring the actuators...I'm not sure whether arms sensorrings and grippers should actually be modules themselves....

Latest commit 7143c9c is roslaunch-dump-verified
Feedback wanted!

@fmessmer fmessmer force-pushed the restructure_hardware_config branch 2 times, most recently from d753027 to 7143c9c Compare April 17, 2017 19:54
Copy link
Member

@floweisshardt floweisshardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good in general, although I need more explanation about the differences between component, module and bundle...

<arg name="can_device" default="can0"/>
<arg name="pkg_hardware_config" default="$(find cob_hardware_config)"/>
<arg name="sim" default="false"/>

<arg name="driver_yaml" value="$(arg pkg_hardware_config)/robots/common/cob4_base_driver.yaml"/>
<arg name="controller_yaml" value="$(arg pkg_hardware_config)/robots/common/cob4_base_controller.yaml"/>
<arg name="driver_yaml" value="$(arg pkg_hardware_config)/modules/base/common/base_cob4_driver.yaml"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to keep cob4 prefix before base prefix. what's your rational to change this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as we are grouping by module, I'd have the "module" as prefix...grouping the launch files, too

@@ -1,23 +1,27 @@
<?xml version="1.0"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still have supported robots using legacy version of schunk components? if not, we can get rid of this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

raw3-1 torso is using the legacy schunk_powercube_chain

</include>

<include if="$(arg use_old_base_drive_chain)" file="$(find cob_bringup)/components/legacy_base.launch">
<arg name="robot" value="$(arg robot)"/>
<include if="$(arg use_old_base_drive_chain)" file="$(find cob_bringup)/bundles/base_legacy.launch">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still have supported robots with legacy version of base?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Afaik, the r@w's could be switched to the canopen version, but not the cob3-X Bruno just reactivated...

Copy link
Member Author

@fmessmer fmessmer Apr 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently it's us not moving on here....the only robots using legacy base are raw3-1 and raw3-3 - raw3-5 could be used as a template..see #422

@fmessmer fmessmer force-pushed the restructure_hardware_config branch from 7143c9c to 1835b81 Compare April 18, 2017 13:53
publish_frequency: 12
scan_intervals: [[-2.0, 2.0]] #[rad] these intervals are included to the scan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still not sure if it makes sense to have those parameters only "component-specific". The ones you pull out are definitely depending on the real instance of the sensor. The rest could, however, in theory be changed as well.

What I don't like too much is that we now have the parameters in two places. The yaml file here and the launch args in the respective modules. This probably makes sense for many nodes, but especially for this one, one could argue that if those cannot/should not be changed depending on the real instance, they could/should be hard-coded and not parameters at all.

I fully understand the idea behind this, but I think there are cases where it is difficult to decide what is depending on the real sensor and what on the sensor type...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not even just that, i.e. deciding whether it's "instance-general" (identical for all instances of the same component/module/robot) or "instance-specific" (possibly different for each instance of the same component/module/robot)...

...I had severe brain-knots when needing to decide whether to call s.th. an instance, a component, a module, a bundle....or simply keep it in robot...

Thus, so far, I don't see the real benefit of this restructuring myself...I know where we want to go, but I have no concept for it (yet)...
However, I think we should go for an approach where we combine/generalize things that are currently identical - even if at a future point we might introduce a new instance that requires different configuration....I think we should handle such case once it occurs - rather than already considering the most general, galactical configuration structure possible...it's all about making our life easier atm, i.e. now, i.e. with the requirements we currently have (not the ones we might have in the future - maybe)

If someone knows a good concept to do so, please provide input @ipa-nhg @ipa-mdl

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from that, I once heard about a "templatable" yaml approach (ros-industrial/universal_robot#144), but I never got an answer about how to use it...
Does someone know more about it?

@@ -0,0 +1,3 @@
angle_resolution: 0.25 #deg
scan_frequency: 25 #hz
set_config: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, the same holds as for the s300 below. Those parameter might need to be changed depending on the instance of the sensor, not the component of "lms1xx" in general.

You can configure the scanner to have a resolution of 0.25 or 0.5 degrees (probably even some more). You could even have one of each on one single robot.

Do you see my point?

@ipa-nhg
Copy link
Member

ipa-nhg commented Apr 19, 2017

My idea was a little bit different, a module is for example the cob4-t7 and this module contains the torso axis, 3 pcs, light, 3 cameras..
And the robots/cob4-X should be a combination of modules, in case that we exchange the modules this combination could be auto-generated, in an ideal world only the urdf and the launch file... but this will be a next step...

@fmessmer
Copy link
Member Author

@ipa-nhg
Do you want to propose your own concept yourself?
Should we do this in a (e.g. half-day) hackathon-style session? maybe next week?
(@ipa-fmw @ipa-mig feel free to join if you like...)

@floweisshardt
Copy link
Member

yes, I'd like to join. let's plan on monday during our sprint planning session

@fmessmer fmessmer self-assigned this Apr 25, 2017
@fmessmer
Copy link
Member Author

fmessmer commented May 6, 2017

closing (unmerged) due to #437 (comment)
I'll keep the branch though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants